package com.dbky.alg.browser;

/**
 * @Auther: tianchao
 * @Date: 2021/12/11 15:37
 * @Description:
 */

public class ApiResult {

    private String code;

    private String message;

    public static ApiResult fail(String msg){
        ApiResult apiResult = new ApiResult();
        apiResult.setMessage(msg);
        apiResult.setCode("401");
        return apiResult;
    }


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
